from django.conf.urls.defaults import *
from brp_app.views import BookListView, BookDetailView

urlpatterns = patterns(
    '',
    (r'^books/$', BookListView.as_view()),
    (r'^book/(?P<pk>.+)/$', BookDetailView.as_view()),
    (r'^booksave/(?P<book_id>.+)/$', 'brp_app.views.book_save'),
)
